GtkBuilder: Add new convenience API
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Apr 2015 02:54:25 +0000 (22:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Apr 2015 02:54:25 +0000 (22:54 -0400)
commitfc83c8ac76b2a9ec13430dab530fa262aaaa9337
treefe4c4b84745e2927ea25a552e804404ad5f9cc84
parent1525d4ab89722a19129b1e2f11135fdb3e5fc58b
GtkBuilder: Add new convenience API

Add a convenience function that is like gtk_builder_get_object()
but stashes away a GError if a lookup fails. To make the error
message informative, the function takes a line/column pair.

Doing things this way is necessary because the custom_tag_end,
custom_finished, and parser_finished vfuncs don't take a
GError parameter, despite being called from a place where
we can report a GError back.
gtk/gtkbuilder.c
gtk/gtkbuilderprivate.h